
package org.springxrsk.modules.classes.service.impl;

import org.springxrsk.modules.classes.pojo.entity.QyCourseEntity;
import org.springxrsk.modules.classes.pojo.vo.QyCourseVO;
import org.springxrsk.modules.classes.excel.QyCourseExcel;
import org.springxrsk.modules.classes.mapper.QyCourseMapper;
import org.springxrsk.modules.classes.service.IQyCourseService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springxrsk.core.mp.base.BaseServiceImpl;
import java.util.List;

/**
 * 课程管理 服务实现类
 *
 *  @author
 * @since 2024-06-15
 */
@Service
public class QyCourseServiceImpl extends BaseServiceImpl<QyCourseMapper, QyCourseEntity> implements IQyCourseService {

	@Override
	public IPage<QyCourseVO> selectQyCoursePage(IPage<QyCourseVO> page, QyCourseVO qyCourse) {
		return page.setRecords(baseMapper.selectQyCoursePage(page, qyCourse));
	}


	@Override
	public List<QyCourseExcel> exportQyCourse(Wrapper<QyCourseEntity> queryWrapper) {
		List<QyCourseExcel> qyCourseList = baseMapper.exportQyCourse(queryWrapper);
		//qyCourseList.forEach(qyCourse -> {
		//	qyCourse.setTypeName(DictCache.getValue(DictEnum.YES_NO, QyCourse.getType()));
		//});
		return qyCourseList;
	}

}
